import 'package:flutter/material.dart';

///**
///* @author hrongyong
///* @date   2/21/21
///* @email hrongyong@gmail.com
///* Description: 多区域饼图model
///*/
class MultiRegionPieChartModel {
  ///标题
  String title;

  ///副标题
  String subTitle;

  ///占比
  double percentage;

  ///颜色
  Color color;

  MultiRegionPieChartModel({this.title, this.subTitle, this.percentage = 0.0, this.color = Colors.white}) {
    if (percentage > 1.0) {
      percentage = 1.0;
    }
    if (percentage < 0.0) {
      percentage = 0.0;
    }
  }
}